home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / ingame_system.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  12.3 KB  |  620 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ SYSTEM MENU \\
  5.  
  6. menuDef {
  7.         name "ingame_system"
  8.         visible 0
  9.         fullscreen 0
  10.         outOfBoundsClick            // this closes the window if it gets a click out of the rectangle
  11.         rect 298 30 276 325
  12.         focusColor 1 .75 0 1
  13.         style 1
  14.         border 1
  15.     onopen { hide grpsystem ; show graphics }
  16.  
  17. itemDef {
  18.     name window
  19.     rect 10 15 256 310
  20.     style 1
  21.     backcolor 0 .1 0 1
  22.     visible 1
  23.     decoration
  24.     }
  25.  
  26. // FRAME    //
  27.  
  28.  
  29. itemDef {
  30.     name window
  31.     rect 0 10 64 64
  32.     style 3
  33.     background "ui/assets/ingameleftcorner.tga"
  34.     visible 1
  35.     decoration
  36.     }
  37.  
  38. itemDef {
  39.     name window
  40.     rect 64 10 64 8
  41.     style 3
  42.     background "ui/assets/ingametop.tga"
  43.     visible 1
  44.     decoration
  45.     }
  46.  
  47. itemDef {
  48.     name window
  49.     rect 167 10 64 8
  50.     style 3
  51.     background "ui/assets/ingametop.tga"
  52.     visible 1
  53.     decoration
  54.     }
  55.  
  56. itemDef {
  57.     name window
  58.     rect 213 10 64 64
  59.     style 3
  60.     background "ui/assets/ingamerightcorner.tga"
  61.     visible 1
  62.     decoration
  63.     }
  64. itemDef {
  65.     name window
  66.     rect 103 0 64 16
  67.     style 3
  68.     background "ui/assets/ingameconnection.tga"
  69.     visible 1
  70.     decoration
  71.     }
  72. itemDef {
  73.     name window
  74.     rect 0 264 64 64
  75.     style 3
  76.     background "ui/assets/ingameleftcornerb.tga"
  77.     visible 1
  78.     decoration
  79.     }
  80. itemDef {
  81.     name window
  82.     rect 213 264 64 64
  83.     style 3
  84.     background "ui/assets/ingamerightcornerb.tga"
  85.     visible 1
  86.     decoration
  87.     }
  88.  
  89. itemDef {
  90.     name window
  91.     rect 0 64 16 64
  92.     style 3
  93.     background "ui/assets/ingameleft.tga"
  94.     visible 1
  95.     decoration
  96.     }
  97.  
  98.  
  99. itemDef {
  100.     name window
  101.     rect 0 128 16 64
  102.     style 3
  103.     background "ui/assets/ingameleft.tga"
  104.     visible 1
  105.     decoration
  106.     }
  107.  
  108. itemDef {
  109.     name window
  110.     rect 0 192 16 74
  111.     style 3
  112.     background "ui/assets/ingameleft.tga"
  113.     visible 1
  114.     decoration
  115.     }
  116.  
  117. itemDef {
  118.     name window
  119.     rect 261 64 16 64
  120.     style 3
  121.     background "ui/assets/ingameright.tga"
  122.     visible 1
  123.     decoration
  124.     }
  125.  
  126.  
  127. itemDef {
  128.     name window
  129.     rect 261 128 16 64
  130.     style 3
  131.     background "ui/assets/ingameright.tga"
  132.     visible 1
  133.     decoration
  134.     }
  135. itemDef {
  136.     name window
  137.     rect 261 192 16 74
  138.     style 3
  139.     background "ui/assets/ingameright.tga"
  140.     visible 1
  141.     decoration
  142.     }
  143.  
  144. itemDef {
  145.     name window
  146.     rect 64 320 74 8
  147.     style 3
  148.     background "ui/assets/ingamebottom.tga"
  149.     visible 1
  150.     decoration
  151.     }
  152. itemDef {
  153.     name window
  154.     rect 138 320 74 8
  155.     style 3
  156.     background "ui/assets/ingamebottom.tga"
  157.     visible 1
  158.     decoration
  159.     }
  160.  
  161. itemDef {
  162.     name ctr_graphics
  163.     text "Graphics"
  164.     type 1
  165.     textscale .25
  166.     group grpControlbutton
  167.     style WINDOW_STYLE_FILLED
  168.     background "ui/assets/button_back.tga"
  169.     rect 30 25 65 20
  170.     textalign 1
  171.     textalignx 32
  172.     textaligny 16
  173.     forecolor 1 1 1 1
  174.     backcolor .37 .1 .1 1 
  175.     visible 1
  176.     action { hide grpSystem ; show graphics }
  177.     mouseEnter { setitemcolor ctr_graphics backcolor .1 .37 .1 1 }
  178.           mouseExit { setitemcolor ctr_graphics backcolor .37 .1 .1 1 }
  179.     }
  180.  
  181.     itemDef {
  182.               name graphics                
  183.         group grpSystem
  184.           type ITEM_TYPE_MULTI
  185.             text "Quality:"
  186.         cvar "ui_glCustom"
  187.         cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 }
  188.         rect 0 50 256 20
  189.               textalign ITEM_ALIGN_RIGHT
  190.               textalignx 133
  191.               textaligny 17
  192.         textscale .25         
  193.               forecolor 1 1 1 1
  194.               visible 0 
  195.             action { uiScript update "ui_glCustom" }
  196.             }
  197.  
  198.     itemDef {
  199.               name graphics
  200.         group grpSystem
  201.          type ITEM_TYPE_EDITFIELD
  202.         text "GL Driver:"
  203.         cvar "r_gldriver"
  204.         //cvarFloatList {  }
  205.         rect 0 70 256 20
  206.               textalign ITEM_ALIGN_RIGHT
  207.               textalignx 133
  208.               textaligny 17
  209.         textscale .25        
  210.               forecolor 1 1 1 1
  211.               visible 0 
  212.             decoration
  213.             }
  214.  
  215.     itemDef {
  216.               name graphics
  217.         group grpSystem
  218.               type ITEM_TYPE_YESNO
  219.         text "GL Extensions:"
  220.         cvar "r_allowExtensions"
  221.         rect 0 90 256 20
  222.               textalign ITEM_ALIGN_RIGHT
  223.               textalignx 133
  224.               textaligny 17
  225.         textscale .25        
  226.               forecolor 1 1 1 1
  227.               visible 0 
  228.         action { uiScript glCustom }
  229.             }
  230.     
  231.     itemDef {
  232.               name graphics
  233.             group grpSystem
  234.               type ITEM_TYPE_MULTI
  235.         text "Video Mode:"
  236.         cvar "r_mode"
  237.         cvarFloatList { "320x240" 0 "400x300" 1 "512x384" 2 "640x480" 3 "800x600" 4 "960x720" 5 "1024x768" 6 "1152x864" 7 "1280x1024" 8 "1600x1200" 9 "2048x1536" 10 "856x480 wide screen" 11 }
  238.         rect 0 110 256 20
  239.               textalign ITEM_ALIGN_RIGHT
  240.               textalignx 133
  241.               textaligny 17
  242.         textscale .25        
  243.               forecolor 1 1 1 1
  244.               visible 0 
  245.             action { uiScript glCustom }
  246.             }
  247.  
  248.     itemDef {
  249.               name graphics
  250.         group grpSystem
  251.               type ITEM_TYPE_MULTI
  252.         text "Color Depth:"
  253.         cvar "r_colorbits"
  254.         cvarFloatList { "Default" 0 "16 bit" 16 "32 bit" 32 }
  255.         rect 0 130 256 20
  256.               textalign ITEM_ALIGN_RIGHT
  257.               textalignx 133
  258.               textaligny 17
  259.         textscale .25        
  260.               forecolor 1 1 1 1
  261.               visible 0 
  262.             action { uiScript glCustom ; uiScript update "r_colorbits" }
  263.             }
  264.  
  265.     itemDef {
  266.               name graphics
  267.         group grpSystem
  268.                type ITEM_TYPE_YESNO
  269.         text "Fullscreen:"
  270.         cvar "r_fullscreen"
  271.         rect 0 150 256 20
  272.               textalign ITEM_ALIGN_RIGHT
  273.               textalignx 133
  274.               textaligny 17
  275.         textscale .25        
  276.               forecolor 1 1 1 1
  277.               visible 0 
  278.             action { uiScript glCustom }
  279.             }
  280.  
  281.     itemDef {
  282.               name graphics
  283.         group grpSystem
  284.              type ITEM_TYPE_MULTI
  285.         text "Lighting:"
  286.         cvar "r_vertexlight"
  287.         cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1  }
  288.         rect 0 170 256 20
  289.               textalign ITEM_ALIGN_RIGHT
  290.               textalignx 133
  291.               textaligny 17
  292.         textscale .25        
  293.               forecolor 1 1 1 1
  294.               visible 0 
  295.             action { uiScript glCustom }
  296.             }
  297.  
  298.     itemDef {
  299.               name graphics
  300.         group grpSystem
  301.               type ITEM_TYPE_MULTI
  302.         text "Geometric Detail:"
  303.         cvar "r_lodbias"
  304.         cvarFloatList { "High" 0 "Medium" 1 "Low" 2 }
  305.         rect 0 190 256 20
  306.               textalign ITEM_ALIGN_RIGHT
  307.               textalignx 133
  308.               textaligny 17
  309.         textscale .25        
  310.               forecolor 1 1 1 1
  311.               visible 0 
  312.             action { uiScript glCustom ; uiScript update "r_lodbias" }
  313.             }
  314.  
  315.     itemDef {
  316.               name graphics
  317.         group grpSystem
  318.               type ITEM_TYPE_MULTI
  319.         text "Texture Detail:"
  320.         cvar "r_picmip"
  321.         cvarFloatList { "Low" 2 "Normal" 1 "High" 0 }
  322.         rect 0 210 256 20
  323.               textalign ITEM_ALIGN_RIGHT
  324.               textalignx 133
  325.               textaligny 17
  326.         textscale .25        
  327.               forecolor 1 1 1 1
  328.               visible 0 
  329.             action { uiScript glCustom }
  330.             }
  331.     
  332.     itemDef {
  333.               name graphics
  334.         group grpSystem
  335.               type ITEM_TYPE_MULTI
  336.         text "Texture Quality:"
  337.         cvar "r_texturebits"
  338.         cvarFloatList { "Default" 0 "16 bit" 1 "32 bit" 2 }
  339.         rect 0 230 256 20
  340.               textalign ITEM_ALIGN_RIGHT
  341.               textalignx 133
  342.               textaligny 17
  343.         textscale .25        
  344.               forecolor 1 1 1 1
  345.               visible 0 
  346.             }
  347.  
  348.     itemDef {
  349.               name graphics
  350.         group grpSystem
  351.               type ITEM_TYPE_MULTI
  352.         text "Texture Filter:"
  353.         cvar "r_texturemode"
  354.         cvarStrList { "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR"  }
  355.         rect 0 250 256 20
  356.               textalign ITEM_ALIGN_RIGHT
  357.               textalignx 133
  358.               textaligny 17
  359.         textscale .25        
  360.               forecolor 1 1 1 1
  361.               visible 0 
  362.         action { uiScript glCustom }
  363.             }
  364.  
  365.     itemDef {
  366.               name graphics
  367.         group grpSystem
  368.               type ITEM_TYPE_YESNO
  369.         text "Compress Textures:"
  370.         cvar "r_ext_compressed_textures "
  371.         rect 0 270 256 20
  372.               textalign ITEM_ALIGN_RIGHT
  373.               textalignx 133
  374.               textaligny 17
  375.         textscale .25        
  376.               forecolor 1 1 1 1
  377.               visible 0 
  378.         action { uiScript glCustom }
  379.             }
  380.     
  381.             
  382. //here
  383.  
  384. itemDef {
  385.     name ctr_driver
  386.     text "Driver Info"
  387.     type 1
  388.     textscale .25
  389.     group grpControlbutton
  390.     style WINDOW_STYLE_FILLED
  391.     background "ui/assets/button_back.tga"
  392.     rect 105 25 65 20
  393.     textalign 1
  394.     textalignx 32
  395.     textaligny 16
  396.     forecolor 1 1 1 1
  397.     backcolor .37 .1 .1 1 
  398.     visible 1
  399.     action { hide grpSystem ; show driver }
  400.     mouseEnter { setitemcolor ctr_driver backcolor .1 .37 .1 1 }
  401.           mouseExit { setitemcolor ctr_driver backcolor .37 .1 .1 1 }
  402.     }
  403.  
  404.  
  405.      
  406.     itemDef {
  407.         name driver
  408.         group grpSystem
  409.         rect 15 55 230 230    
  410.         ownerdraw UI_GLINFO 
  411.         textalign 1
  412.         textscale .15
  413.         textalignx 0
  414.         textaligny 17
  415.         forecolor 1 1 1 1
  416.         visible 0
  417.         decoration
  418.     }
  419.  
  420. itemDef {
  421.     name ctr_other
  422.     text "Other"
  423.     type 1
  424.     textscale .25
  425.     group grpControlbutton
  426.     style WINDOW_STYLE_FILLED
  427.     background "ui/assets/button_back.tga"
  428.     rect 180 25 65 20
  429.     textalign 1
  430.     textalignx 32
  431.     textaligny 16
  432.     forecolor 1 1 1 1
  433.     backcolor .37 .1 .1 1 
  434.     visible 1
  435.     action { hide grpSystem ; show other }
  436.     mouseEnter { setitemcolor ctr_other backcolor .1 .37 .1 1 }
  437.           mouseExit { setitemcolor ctr_other backcolor .37 .1 .1 1 }
  438.     }
  439.     
  440.  
  441. itemDef {
  442.           name other            
  443.     group grpSystem
  444.           style 1
  445.     text "Display"
  446.     rect 0 45 128 20
  447.           textalign ITEM_ALIGN_CENTER
  448.           textalignx 128
  449.           textaligny 17
  450.     textscale .25         
  451.           forecolor 1 1 1 1
  452.           visible 0 
  453.     decoration
  454.         }
  455.     
  456.     itemDef {
  457.               name other            
  458.         group grpSystem
  459.               type ITEM_TYPE_SLIDER
  460.         text "Brightness:"
  461.         cvarfloat "r_gamma" 1 .5 2
  462.         rect 0 65 256 20
  463.               textalign ITEM_ALIGN_RIGHT
  464.               textalignx 128 
  465.               textaligny 17
  466.         textscale .25         
  467.               forecolor 1 1 1 1
  468.               visible 0 
  469.             }
  470.  
  471.     itemDef {
  472.               name other
  473.         group grpSystem
  474.               type ITEM_TYPE_SLIDER
  475.         text "Screen Size:"
  476.         cvarfloat "cg_viewsize" 100 30 100
  477.         //cvarFloatList {  }
  478.         rect 0 85 256 20
  479.               textalign ITEM_ALIGN_RIGHT
  480.               textalignx 128
  481.               textaligny 17
  482.         textscale .25        
  483.               forecolor 1 1 1 1
  484.               visible 0 
  485.             }
  486.  
  487. itemDef {
  488.           name other            
  489.     group grpSystem
  490.           style 1
  491.     text "Sound"
  492.     rect 0 125 128 20
  493.           textalign ITEM_ALIGN_CENTER
  494.           textalignx 128
  495.           textaligny 17
  496.     textscale .25         
  497.           forecolor 1 1 1 1
  498.           visible 0 
  499.     decoration
  500.         }
  501.  
  502.     itemDef {
  503.               name other
  504.         group grpSystem
  505.               type ITEM_TYPE_SLIDER
  506.         text "Effects Volume:"
  507.         cvarfloat "s_volume" 0.7 0 1
  508.             rect 0 145 256 20
  509.               textalign ITEM_ALIGN_RIGHT
  510.               textalignx 128
  511.               textaligny 17
  512.         textscale .25        
  513.               forecolor 1 1 1 1
  514.               visible 0 
  515.             }
  516.     
  517.     itemDef {
  518.               name other
  519.         group grpSystem
  520.               type ITEM_TYPE_SLIDER
  521.         text "Music Volume:"
  522.         cvarfloat "s_musicvolume" 0.25 0 1
  523.             rect 0 165 256 20
  524.               textalign ITEM_ALIGN_RIGHT
  525.               textalignx 128
  526.               textaligny 17
  527.         textscale .25        
  528.               forecolor 1 1 1 1
  529.               visible 0 
  530.             }
  531.  
  532.     itemDef {
  533.               name other
  534.         group grpSystem
  535.               type ITEM_TYPE_MULTI    
  536.         text "Sound Quality:"
  537.         cvar "s_khz"
  538.         cvarFloatList { "22 khz (high)" 22 "11 khz (low)" 11 }
  539.         rect 0 185 256 20
  540.               textalign ITEM_ALIGN_RIGHT
  541.               textalignx 128
  542.               textaligny 17
  543.         textscale .25        
  544.               forecolor 1 1 1 1
  545.               visible 0 
  546.             }
  547.  
  548.     itemDef {
  549.               name other
  550.         group grpSystem
  551.               type ITEM_TYPE_YESNO    
  552.         text "Doppler Sound:"
  553.         cvar "s_doppler"
  554.         rect 0 205 256 20
  555.               textalign ITEM_ALIGN_RIGHT
  556.               textalignx 128
  557.               textaligny 17
  558.         textscale .25        
  559.               forecolor 1 1 1 1
  560.               visible 0 
  561.             }
  562.  
  563.     
  564. itemDef {
  565.           name other            
  566.     group grpSystem
  567.           style 1
  568.     text "Network"
  569.     rect 0 245 128 20
  570.           textalign ITEM_ALIGN_CENTER
  571.           textalignx 128 
  572.           textaligny 17
  573.     textscale .25         
  574.           forecolor 1 1 1 1
  575.           visible 0 
  576.     decoration
  577.         }
  578.  
  579.     itemDef {
  580.               name other
  581.         group grpSystem
  582.               type ITEM_TYPE_MULTI
  583.         text "Net Data Rate:"
  584.         cvar "rate"
  585.         cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSl" 25000  }
  586.         rect 0 265 256 20
  587.               textalign ITEM_ALIGN_RIGHT
  588.               textalignx 128
  589.               textaligny 17
  590.         textscale .25        
  591.               forecolor 1 1 1 1
  592.               visible 0 
  593.             }
  594.  
  595. itemDef {
  596.     name graphics
  597.     text "Apply"
  598.     type 1
  599.     textscale .25
  600.     group grpsystem
  601.     style WINDOW_STYLE_FILLED
  602.     background "ui/assets/button_back.tga"
  603.     rect 101 295 75 20
  604.     textalign 1
  605.     textalignx 37
  606.     textaligny 15
  607.     forecolor 1 1 1 1
  608.     backcolor .37 .1 .1 1 
  609.     visible 0
  610.     action { exec "vid_restart" }
  611.     mouseEnter { setcolor backcolor .1 .37 .1 1 }
  612.           mouseExit { setcolor backcolor .37 .1 .1 1 }
  613.     }
  614.  
  615.  
  616. }
  617.  
  618.  
  619. }
  620.